<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
define('NOSESSION',true);
require_once '../../core/core.php';
define('NO_ERROR_RETURN',true);
define('JSAPI',true);
if($_RQ['reqsn']){
	$pay_order=pdo_get('core_paylog',array('tid'=>trim($_RQ['reqsn'])));
	$_SESSION['uniacid']=$_SESSION['uniacid']?:$pay_order['uniacid'];
	$_SESSION['uid']=$_SESSION['uid']?:$pay_order['mid'];
	$url=$pay_order['success_url'];
}
$url=$url?:$_SESSION['returl'];
$url=custom_url($url,true);
//file_put_contents('returl.txt',$url."\n",FILE_APPEND);
header('Location:'.$url);